<?php
include_once(__DIR__.'/utils/Utils.class.php');

$filename = "WriteFile.txt";

$time = Utils::udate();

$file = fopen($filename, "w");
fprintf($file, "Success(%s).", $time);
fclose($file); 

$line = "========================================";
$file = fopen($filename, "r");
fscanf($file, "%s", $line);
echo "file handle: [" . (int)$file . "]";
echo "<br />";
echo "line: [" . $line . "]";
echo "<br />";

?>